<?
require("config.php");

$location_status .= "| Add";
$show_backnav = "subscription_menu";
$menuname = NULL;
$menutarget = NULL;

if (NULL!=$action){

   $field = array(
	"code", 
	"email", 
	"name", 
	"date", 
	);


   $content = array(
	$Code,
	$Email,
	$Name,
	$Date,
	);

   myInsert($table,$field,$content);


   header("location:" . $rela_path . "share/msg.php?v=341");

   exit();

}else{

  if (checkCode($table,$Code)){

	header("location:" . $rela_path . "share/msg.php?v=9002");

	exit();
  
  }

}

require($rela_path . "inc/header.php");

?>



<form action="" method="post" enctype="multipart/form-data" name="form1">
<input name="action" type="hidden" value="add">
<input name="Code" type="hidden" value="<?print($Code)?>">




<table width="95%" border="0" align="center">
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr> 
    <td valign="top"> <p>&nbsp; 
      <table border="0" cellspacing="5" cellpadding="1">
        <tr> 
          <td class="tdheader">Code :</td>
          <td><?print($Code)?></td>
        </tr>
        <tr> 
          <td class="tdheader">Name :</td>
          <td><input type="text" class="text" name="Name" size="40"></td>
        </tr>
        <tr> 
          <td class="tdheader">Subscriber's Email :</td>
          <td><input type="text" class="text" name="Email" size="40"></td>
        </tr>
        <tr> 
          <td class="tdheader">Subscription Date :</td>
          <td><input type="text" class="text" name="Date" size="40" value=<?print(date("Y-m-d"))?>></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="image" src="../../images/bt_cancel.gif" onClick="Redirect('subscription_menu.php',1);return false;"> <input type="image" src="../../images/bt_save.gif">
          </td>
        </tr>
      </table>
      <p> <br>
      <p>&nbsp;
      <p>&nbsp;
      <p>&nbsp;
      <p>&nbsp;
      <p>&nbsp;
      <p>&nbsp; 
      <p>&nbsp;
    </td>
  </tr>
</table>
<br>
<br>
<br>
<?
require($rela_path . "inc/footer.php");
?>
